﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Quail.Silverlight
{
    public partial class SlvCheckBox : SlvControl
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SlvCheckBox"/> class.
        /// </summary>
        public SlvCheckBox()
        {
        }

    	/// <summary>
    	/// Initializes a new instance of the <see cref="SlvCheckBox"/> class.
    	/// </summary>
        /// <param name="container">
    	/// The page containing the control.
    	/// </param>
        /// <param name="selector">
    	/// The control selector.
    	/// </param>
        public SlvCheckBox(SlvControlContainer container, string selector)
            : base(container, selector)
        {
        }

    	/// <summary>
    	/// Initializes a new instance of the <see cref="SlvCheckBox"/> class.
    	/// </summary>
    	/// <param name="control">
    	/// The control.
    	/// </param>
    	public SlvCheckBox(SlvControl control)
            : base(control)
        {
        }

    	/// <summary>
    	/// Gets or sets a value indicating whether Checked.
    	/// </summary>
    	public bool Checked
        {
            get { return GetPropertyValue("Value") == "true"; }
            set { SetPropertyValue("Value", value.ToString()); }
        }
    }
}
